<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Sets FDF character encoding</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.fdf-set-ap.html">« fdf_set_ap</a></li>
      <li style="float: right;"><a href="function.fdf-set-file.html">fdf_set_file »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.fdf.html">FDF 函数</a></li>
    <li>Sets FDF character encoding</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.fdf-set-encoding" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">fdf_set_encoding</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.7, PHP 5 &lt; 5.3.0, PECL fdf SVN)</p><p class="refpurpose"><span class="refname">fdf_set_encoding</span> &mdash; <span class="dc-title">Sets FDF character encoding</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.fdf-set-encoding-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>fdf_set_encoding</strong></span>(<span class="methodparam"><span class="type">resource</span> <code class="parameter">$fdf_document</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$encoding</code></span>): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   Sets the character encoding for the FDF document.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.fdf-set-encoding-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">fdf_document</code></dt>

     <dd>

      <p class="para">
       The FDF document handle, returned by <span class="function"><a href="function.fdf-create.html" class="function">fdf_create()</a></span>,
       <span class="function"><a href="function.fdf-open.html" class="function">fdf_open()</a></span> or <span class="function"><a href="function.fdf-open-string.html" class="function">fdf_open_string()</a></span>.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">encoding</code></dt>

     <dd>

      <p class="para">
       The encoding name. The following values are supported: 
       &quot;<code class="literal">Shift-JIS</code>&quot;, &quot;<code class="literal">UHC</code>&quot;,
       &quot;<code class="literal">GBK</code>&quot; and &quot;<code class="literal">BigFive</code>&quot;.
      </p>
      <p class="para">
       An empty string resets the encoding to the default 
       <code class="literal">PDFDocEncoding/Unicode</code> scheme.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.fdf-set-encoding-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>true</code></strong>， 或者在失败时返回 <strong><code>false</code></strong>。
  </p>
 </div>


</div></div></div></body></html>